#include <stdio.h>
void print(int n, int arr[100])
{
    int a = 0;
    for (a = 1; a <= n; a++)
    {
        printf("%d ", arr[a]);
    }
}
void order(int n, int arr[100])
{
    int a = 0;
    int b = 0;
    for (b = 0; b <= n - 1; b++)
    {
        for (a = 1; a <= n-1; a++)
        {
            int i = 0;
            if (arr[a] < arr[a + 1])
            {
                i = arr[a];
                arr[a] = arr[a + 1];
                arr[a + 1] = i;
            }
        }
    }
}
int main()
{
    int arr[100] = { 0 };
    int n = 0;//how many number you need to order
    scanf_s("%d", &n);
    int a = 0;
    for (a = 1; a <= n; a++)
    {
        scanf_s("%d", &arr[a]);
    }
    order(n, arr);
    print(n, arr);
    return 0;
}